﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace IMIS_ERP.Web.ERP_Head
{
    public partial class EH_Page_Left : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Set_pnl();
        }

        /// <summary>设置导航的可见性
        ///     <remarks>2010-12-19 河大信管团队-朱胜贤</remarks>
        /// </summary>
        private void Set_pnl()
        {
            pnlF.Visible = false;
            pnlS.Visible = false;
            pnlM.Visible = false;
            pnlI.Visible = false;
            switch (Session["UCode"].ToString().Substring(0,1))
            {
                case "f":
                    pnlF.Visible = true;
                    break;
                case "业务人员":
                    pnlS.Visible = true;
                    break;
                case "经理":
                    pnlM.Visible = true;
                    break;
                case "i":
                    pnlI.Visible = true;
                    break;
                default:
                    Response.Redirect("../Quit.aspx?cr=no");
                    break;
            }
        }
    }
}